package com.siteseat.crudeq.client;

import java.io.IOException;

import com.siteseat.crudeq.common.raw.protocol.v1.ErrorMessage;

/**
 *
 */
public class ErrorResponseException extends IOException {

  private ErrorMessage error;

  /**
   *
   *
   */
  public ErrorResponseException( ErrorMessage error ) {
    super( error.toString() );
  }

  /**
   * Gets the error
   * 
   * @return the error
   */
  public ErrorMessage getError() {
    return error;
  }

}
